﻿////Copyright 2011 - Jonathan Allen

//using System;
//using System.Windows.Controls;
//using System.Windows.Input;

//namespace Granite.Xaml.Controls
//{
//    /// <summary>
//    /// This is a TextBox that doesn't eat mouse click events.
//    /// </summary>
//    public class ClickableTextBox : TextBox
//    {
//		/// <summary>
//		/// Invoked when an unhandled <see cref="E:System.Windows.UIElement.MouseLeftButtonDown" /> routed event is raised on this element. Implement this method to add class handling for this event. 
//		/// </summary>
//		/// <param name="e">
//		/// The <see cref="T:System.Windows.Input.MouseButtonEventArgs" /> that contains the event data. The event data reports that the left mouse button was pressed.
//		/// </param>
//        protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e)
//        {
//            if (e == null)
//                throw new ArgumentNullException("e", "e is null.");

//            base.OnMouseLeftButtonDown(e);
//            e.Handled = false;
//        }

//		/// <summary>
//		/// Invoked when an unhandled <see cref="E:System.Windows.UIElement.MouseLeftButtonUp" /> routed event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. 
//		/// </summary>
//		/// <param name="e">
//		/// The <see cref="T:System.Windows.Input.MouseButtonEventArgs" /> that contains the event data. The event data reports that the left mouse button was released.
//		/// </param>
//        protected override void OnMouseLeftButtonUp(MouseButtonEventArgs e)
//        {
//            if (e == null)
//                throw new ArgumentNullException("e", "e is null.");

//            base.OnMouseLeftButtonUp(e);
//            e.Handled = false;
//        }

//		/// <summary>
//		/// Invoked when an unhandled <see cref="E:System.Windows.UIElement.MouseRightButtonDown" /> routed event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. 
//		/// </summary>
//		/// <param name="e">
//		/// The <see cref="T:System.Windows.Input.MouseButtonEventArgs" /> that contains the event data. The event data reports that the right mouse button was pressed.
//		/// </param>
//        protected override void OnMouseRightButtonDown(MouseButtonEventArgs e)
//        {
//            if (e == null)
//                throw new ArgumentNullException("e", "e is null.");

//            base.OnMouseRightButtonDown(e);
//            e.Handled = false;
//        }

//		/// <summary>
//		/// Invoked when an unhandled <see cref="E:System.Windows.UIElement.MouseRightButtonUp" /> routed event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. 
//		/// </summary>
//		/// <param name="e">
//		/// The <see cref="T:System.Windows.Input.MouseButtonEventArgs" /> that contains the event data. The event data reports that the right mouse button was released.
//		/// </param>
//        protected override void OnMouseRightButtonUp(MouseButtonEventArgs e)
//        {
//            if (e == null)
//                throw new ArgumentNullException("e", "e is null.");

//            base.OnMouseRightButtonUp(e);
//            e.Handled = false;
//        }

//    }
//}
